package com.r2coding.common.util;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author:98k灬
 * @since:2022/04/04 16:21
 **/
@Data
@Accessors(chain = true)
public class BaseRequest<T> implements Serializable {
    private long current;
    private long size;
    public IPage<T> getPage() {
        return new Page<T>().setCurrent(this.current).setSize(this.size);
    }
}
